package com.zzb.operator;

import java.util.Scanner;

public class OperatorTest2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入成绩（0-100）：");
        int grades = sc.nextInt();
        if (grades > 100 || grades < 0) {
            System.out.println("输入有误！！！！");
        } else {
            grades /= 10;
            if (grades <= 5 && grades >= 0) {
                grades = 5;
            }
            switch (grades) {
                case 10:
                case 9:
                    System.out.println("优秀");
                    break;
                case 8:
                    System.out.println("好");
                    break;
                case 7:
                    System.out.println("良");
                    break;
                case 6:
                    System.out.println("及格");
                    break;
                case 5:
                    System.out.println("不及格");
                    break;
            }
        }
    }
}
